<template>
    <div id="app">
        <router-view v-if="isRouterAlive" />
    </div>
</template>

<script>
export default {
    name: 'App',
    provide() {
        return {
            reload: this.reload
        }
    },
    data() {
        return {
            isRouterAlive: true
        }
    },
    methods: {
        reload() {
            this.isRouterAlive = false
            this.$nextTick(function() {
                this.isRouterAlive = true
            })
        }
    }
}
</script>


<style lang="less">
@import './App.less';

.size {
    width: 100%;
    height: 100%;
}

html,
body,
ul {
    .size;
    margin: 0;
    padding: 0;
    // overflow: hidden;
}

ul {
    list-style: none;
}

#app {
    .size;
}

.features-btn {
    width: 75px;
    height: 31px;
    position: relative;
    i {
        position: absolute;
        top: 0px;
        right: 27px;
    }

    span {
        position: absolute;
        top: 5px;
        left: 35px;
    }
}

.btn-auto-m {
    margin-left: 10px;
}

.search-btn {
    margin-left: 10px;
}

.table-top-margin {
    margin-top: 30px;
}

.style-input {
    display: inline-block;
    width: 100%;
    height: 32px;
    line-height: 1.5;
    padding: 4px 7px;
    font-size: 12px;
    border: 1px solid #dcdee2;
    border-radius: 4px;
    color: #515a6e;
    background-color: #fff;
    background-image: none;
    position: relative;
    cursor: text;
    outline-style: none;
    transition: border 0.2s ease-in-out, background 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out;
}
.ivu-select-item-selected,
.ivu-select-item-selected:hover {
    color: #515a6e !important;
}
</style>
